const RESOURCE_API = {
    // 查询资源列表
    list: {
        method: 'get',
        url: '/resource/list'
    },
    // 查询资源列表，以树形结构显示
    listTree: {
        method: 'get',
        url: '/resource/tree'
    },
    // 查询所有可用的菜单
    listMenu: {
        method: 'get',
        url: '/resource/menus',
    },
    // 查询所有可用的菜单项
    listMenuItem: {
        method: 'get',
        url: '/resource/menu-items',
    },
    // 增加或更新
    save: {
        method: 'post',
        url: '/resource'
    },
    delete: {
        method: 'delete',
        url: '/resource'
    },
}

export default RESOURCE_API